<?php 
class CodeComponent extends Component{
	/**
	* generate code dùng cho forgot password
	*/

	public function generate_code(){
		$random_number = rand(1000000,9999999);
	    $code = md5($random_number);
	    return $code;
	}
}
?>